﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SqlServer.aspx.cs" Inherits="WinnerCMS.WebUI.Admin.DataBase.SqlServer" %>

<!doctype html>
<html>
<head id="Head1" runat="server">
    <title>数据库管理</title>
    <meta charset="utf-8">
    <meta content="no-cache" http-equiv="Pragma" />
    <%: Scripts.Render("~/Scripts/AdminBase") %>
    

    <%: Styles.Render("~/Content/Bootstrap/css") %>

    

    <style type="text/css">
        #Panel1, #Panel2, #Panel3
        {
            margin-left: auto;
            margin-right: auto;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <table id="NavigationPath">
        <tr>
            <td width="50%">
                
                &nbsp;
                <asp:Label ID="lblPath" runat="server"></asp:Label>
            </td>
            <td width="50%">
            </td>
        </tr>
    </table>
    <br />
    <asp:Panel ID="Panel1" runat="server" Width="500px" HorizontalAlign="Center">
        <table cellspacing="0" cellpadding="0" width="100%" border="1">
            <tr>
                <td class="HeaderStyle">
                    数据库备份
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;为了防止被恶意下载备份数据库，建议使用<font color="#ff0000"><b>.CS</b></font>的后缀名，可防恶意下载。<br />
                    <br />
                    <asp:TextBox ID="txtBackup" runat="server" Width="300px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ControlToValidate="txtBackup" ErrorMessage="路径不能为空。"></asp:RequiredFieldValidator>
                    <br>
                    <p align="center">
                        <asp:Button ID="btnBackup" runat="server" CssClass="btn btn-default" 
                            OnClick="btnBackup_Click" Text="备份数据库" />
                    </p>
                    <br></br>
                    </br>
                </td>
            </tr>
        </table>
    </asp:Panel>
    <asp:Panel ID="Panel2" runat="server" Width="500px" HorizontalAlign="Center">
        <table cellspacing="0" cellpadding="0" width="100%" border="1">
            <tr>
                <td class="HeaderStyle">
                    还原数据库
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;请选择备份文件！！！<br />
                    &nbsp;
                    <asp:TextBox ID="txtRestore" runat="server" Width="300px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                        ControlToValidate="txtRestore" ErrorMessage="路径不能为空"></asp:RequiredFieldValidator>
                    <br />
                    <p align="center">
                        &nbsp;<asp:Button ID="btnRestore" runat="server" CssClass="btn btn-default" OnClick="btnRestore_Click"
                            Text="还原数据库" />
                    </p>
                </td>
            </tr>
        </table>
    </asp:Panel>
    <asp:Panel ID="Panel3" runat="server" Width="500px" HorizontalAlign="Center">
        <table cellspacing="0" cellpadding="0" width="100%" border="1">
            <tr>
                <td align="center" class="HeaderStyle">
                    压缩数据库
                </td>
            </tr>
            <tr>
                <td align="center">
                    &nbsp;<asp:Button ID="btnCompact" runat="server" CssClass="btn btn-default" OnClick="btnCompact_Click"
                        Text="压缩数据库" />
                    <br />
                </td>
            </tr>
        </table>
    </asp:Panel>
    </form>
</body>
</html>
